package br.sgpweb.beans;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import br.sgpweb.dao.ServidoresDAO;
import br.sgpweb.model.Servidores;

@ManagedBean(name="beanServidor")
@SessionScoped
public class ServidoresBean implements Serializable {

	private static final long serialVersionUID = 1L;
	private Servidores servidor;
	private ServidoresDAO dao;

	//Construtor da Classe
	public ServidoresBean() {
		this.servidor = new Servidores();
		this.setDao(new ServidoresDAO());
	}

	
	public Servidores getServidor() {
		return servidor;
	}

	public void setServidor(Servidores servidor) {
		this.servidor = servidor;
	}


	public ServidoresDAO getDao() {
		return dao;
	}


	public void setDao(ServidoresDAO dao) {
		this.dao = dao;
	}	
}
